package com.neusoft.shopping.manager.service;

import com.neusoft.shopping.manager.dao.BusinesDAOImpl;
import com.neusoft.shopping.manager.entity.BusinesEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinesService {
    @Autowired
    private BusinesDAOImpl dao;
    public BusinesEntity login(String account, String password) {
        return dao.login(account,password);
    }
    public List<BusinesEntity> qureyAll() {
        return dao.qureyAll();
    }
    public int add_busines(BusinesEntity busines){
    return dao.add_busines(busines);
    }
    public int update_buines(BusinesEntity busines){
       return dao.update_buines(busines);
    }
    public int del_buines(Integer businesno){
        return dao.del_buines(businesno);
    }
}
